package demo;

import application.BracketsMatching;

public class DemoBracketsMatching {
    public static void test(String brackets, BracketsMatching bracketsMatching) {
        bracketsMatching.setBrackets(brackets);
        System.out.println("brackets: "  + brackets + "\t" + "isValid: " + bracketsMatching.isValid());
    }

    public static void main(String[] args) {
        BracketsMatching bracketsMatching = new BracketsMatching();

        test("((([])()){})", bracketsMatching);
        test("((([])(){})", bracketsMatching);
        test("(()]", bracketsMatching);
        test("([]{[]}(([])([{}]){}[]({})){})", bracketsMatching);
    }
}
